package com.ctshk.rpc.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.system.base.CustomBaseMapper;
import com.ctshk.rpc.system.entity.SysDepartment;
import com.ctshk.rpc.system.entity.SysSupplierOrderMsg;
import com.ctshk.rpc.system.entity.SysSupplierOrderMsgUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 分配管理用户 Mapper 接口
 * </p>
 *
 * @author 姜斌文
 * @since 2021-03-31
 */
public interface SysAssignmentMgtUserMapper extends CustomBaseMapper<SysSupplierOrderMsgUser> {
    /**
     * 根据reuleId获取用户信息
     * @param reuleId
     * @return List<SysSupplierOrderMsgUser>
     */
    @Select("select t.id, t.is_deleted  FROM t_supplier_order_message_rule_user t WHERE t.rule_id = #{reuleId}")
    List<SysSupplierOrderMsgUser> selectChildren(@Param("reuleId") long reuleId);
}
